import Vue from 'vue'
import _ from 'love-u'
Vue.mixin({
	methods: {
		limitStr: _.limitStr,
		$fmtPrice(price) {
			return price ? (price + 'MWK') : '免费'
		},
		$fmtTime(v) {
			return this.$u.timeFrom(v, 'yyyy年mm月dd日 hh:MM:ss')
		},
		$fmtOrderStatus(status) {
			switch (status) {
				case 0:
					return '未付款'
				case 1:
					return '已付款'
				case 2:
					return '已发货'
				case 3:
					return '已收货'
			}
		}

	}
})
